cc=httpserve  #生成的目标文件
options=-std=c++11 -lpthread #依赖的选项
source=main.cc #依赖的源文件
cul=$(shell pwd)
cgi=cgi.cc

ALL:$(cc) cgi
.PHONY:ALL

$(cc):$(source)
	@g++  -o $(cc)  $^ $(options)
    
cgi:$(cgi)
	@g++ -o $@ $^ -std=c++11


.PHONY:clean
clean:
	@rm -rf $(cc) cgi 
	@rm -rf put

.PHONY:put
put:
	@mkdir -p put
	@cp $(cc) put
	@cp -rf wwwroot put
	@cp cgi put/wwwroot


	
